package com.wecloud.core.action.bussiness;

import com.wecloud.core.action.impl.BaseTransCfmAction;
import com.wecloud.core.constant.ErrorMsg;
import com.wecloud.core.constant.WeContext;
import com.wecloud.core.exception.WeException;
import com.wecloud.core.user.WeUser;

/**
 * 保存说说
 * @author qq374
 *
 */
public class SaySomethingAction extends BaseTransCfmAction{
	@Override
	public void excute(WeContext context)  throws WeException{
		WeUser  user = context.getUser();
		String userid = user.getUserId();
		String text = context.getString("saysth");
		if(text == null || "".equals(text)){
			throw new WeException(ErrorMsg.Error_0015);
		}
		context.setData("userid", userid);
		context.setData("sstext", text);
		context.setData("isfind", "1");//是否可见
		context.setData("isfriendfind", "1");//是否朋友可见
		context.setData("isreview", "1");//是否可评论
	}
}
